﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace RAFOJ.Structs
{
    class Submission
    {
        // Attirbutes

        private int user_id;
        private int problem_id;
        private string real_problem_id;
        private string source;
        private string status;
        private bool is_public;
        private string language;
        private string error_info;
        private DateTime submission_time;

        // Constructors
        public Submission() { }

        public Submission(string tableName)
        {

        }

        // Get methods

        public int getUserId()
        {
            return user_id;
        }

        public int getProblemId()
        {
            return problem_id;
        }

        public string getRealProblemId()
        {
            return real_problem_id;
        }

        public string getSource()
        {
            return source;
        }

        public string getStatus()
        {
            return status;
        }

        public bool isPublic()
        {
            return is_public;
        }

        public string getLanguage()
        {
            return language;
        }

        public string getErrorInfo()
        {
            return error_info;
        }

        public DateTime getSubmissionTime()
        {
            return submission_time;
        }

        // Set methods

        public void setUserId(int user_id)
        {
            this.user_id = user_id;
        }

        public void setProblemId(int problem_id)
        {
            this.problem_id = problem_id;
        }

        public void setRealProblemId(string real_problem_id)
        {
            this.real_problem_id = real_problem_id;
        }

        public void setSource(string source)
        {
            this.source = source;
        }

        public void setStatus(string status)
        {
            this.status = status;
        }

        public void setPublic(bool is_public)
        {
            this.is_public = is_public;
        }

        public void setLanguage(string language)
        {
            this.language = language;
        }

        public void setErrorInfo(string error_info)
        {
            this.error_info = error_info;
        }

        public void setSubmissionTime(DateTime submission_time)
        {
            this.submission_time = submission_time;
        }
    }
}